/**
 * Filename: YNNativeComparator.java
 * @author  Firefly
 * @contact postfirefly@163.com
 * @time    2016/3/10 1:09
 */
package com.github.postsanf.yinian.utils;

import com.github.postsanf.yinian.bean.YNNativeImage;

import java.util.Comparator;

/**
 * 本地图片时间比对
 */
public class YNNativeComparator implements Comparator<YNNativeImage> {

	@Override
	public int compare(YNNativeImage o1, YNNativeImage o2) {
		return o2.getTime().compareTo(o1.getTime());
	}

}

